package com.sz;

import com.codingapi.txlcn.tc.config.EnableDistributedTransaction;
import com.sz.config.RibbonConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ImportResource;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
@EnableDiscoveryClient   //启用注册客户端；
@EnableFeignClients       //启用微服务调用；
@EnableDistributedTransaction
@MapperScan("com.sz.mapper")
@ImportResource("classpath:*.xml")
@RibbonClient(name = "RibbonConfig", configuration = RibbonConfig.class)
public class RemittanceStarters {

    public static void main(String[] args) {
        //程序入口
        System.out.println("-------------ccc---------------");
        SpringApplication.run(RemittanceStarters.class,args);
    }


}
